home *** CD-ROM | disk | FTP | other *** search
/ mail.altrad.com / 2015.02.mail.altrad.com.tar / mail.altrad.com / TEST / office deutch / INFOPATH.NL-NL / INFLR.CAB / FL_localservices_xsl_ENU____.3643236F_FC70_11D3_A536_0090278A1BB8 < prev    next >
Extensible Markup Language  |  2005-09-23  |  3KB  |  72 lines

  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl">
  3.     <xsl:template match="/">
  4.         <h1 _locID="L_string01_Text">Web Services on the Local Machine</h1>
  5.         <p _locID="L_string02_Text">The Web services and Discovery Documents available on your VS.NET developer
  6.             machine are listed below. Click the service link to browse that service.</p>
  7.         <table class="listpage" cellpadding="3" cellspacing="1" frame="void" bordercolor="#ffffff" rules="rows" width="100%" align="center">
  8.             <xsl:choose>
  9.                 <xsl:when test="localDiscovery/contractRef">
  10.                     <tr valign="center" align="left">
  11.                         <td class="header" width="125" _locID="L_string03_Text" nowrap="true">Services</td>
  12.                         <td class="header" id="120">URL</td>
  13.                     </tr>
  14.                     <xsl:for-each select="localDiscovery/contractRef" order-by='@ref'>
  15.                         <tr valign="center" align="left">
  16.                             <td class="tbltext">
  17.                                 <a _locID="L_string04_Text"><xsl:attribute name="href"><xsl:value-of select="@ref" /></xsl:attribute><xsl:value-of select="@name" /></a>
  18.                             </td>
  19.                             <td class="tbltext" nowrap="true">
  20.                                 <xsl:value-of select="@ref" />
  21.                             </td>
  22.                         </tr>
  23.                     </xsl:for-each>
  24.                 </xsl:when>
  25.             </xsl:choose>
  26.             <xsl:choose>
  27.                 <xsl:when test="localDiscovery/discoveryRef">
  28.                     <tr valign="center" align="left">
  29.                         <td class="header" _locID="L_string05_Text">Discovery Documents</td>
  30.                         <td class="header" _locID="L_string06_Text">URL</td>
  31.                     </tr>
  32.                     <xsl:for-each select="localDiscovery/discoveryRef" order-by='@ref'>
  33.                         <tr valign="center" align="left">
  34.                             <td class="tbltext">
  35.                                 <a _locID="L_string07_Text"><xsl:attribute name="href"><xsl:value-of select="@ref" /></xsl:attribute><xsl:value-of select="@name" /></a>
  36.                             </td>
  37.                             <td class="tbltext" nowrap="true">
  38.                                 <xsl:value-of select="@ref" />
  39.                             </td>
  40.                         </tr>
  41.                     </xsl:for-each>
  42.                 </xsl:when>
  43.             </xsl:choose>
  44.             <xsl:choose>
  45.                 <xsl:when test="discoveryError">
  46.                     <tr valign="center" align="left">
  47.                         <tr>
  48.                             <td class="tbltext" colspan="2" _locID="L_string09_Text">There was an error while enumerating services on local machine: </td>
  49.                         </tr>
  50.                     </tr>
  51.                     <xsl:for-each select="discoveryError">
  52.                         <tr valign="center" align="left">
  53.                             <td class="tbltext">
  54.                                 <xsl:value-of select="@errorMessage" />
  55.                             </td>
  56.                         </tr>
  57.                     </xsl:for-each>
  58.                 </xsl:when>
  59.             </xsl:choose>
  60.  
  61.             <xsl:choose>
  62.                 <xsl:when test="localDiscovery/contractRef | localDiscovery/discoveryRef | discoveryError"></xsl:when>
  63.                 <xsl:otherwise>
  64.                     <tr>
  65.                         <td class="tbltext" colspan="2" _locID="L_string08_Text">None - No Web services were found on the local computer.</td>
  66.                     </tr>
  67.                 </xsl:otherwise>
  68.             </xsl:choose>
  69.         </table>
  70.     </xsl:template>
  71. </xsl:stylesheet>
  72.